package com.zkthink.ceres.member.dto;

import com.zkthink.base.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @ClassName RelationAccountSearchDTO
 * @Description: RelationAccountSearchDTO
 * @Author ck
 * @Date 2022/3/10
 * @Version V1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "RelationAccountSearchDTO", description = "查询关联用户")
public class RelationAccountSearchDTO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 会员手机号
     */
    @ApiModelProperty(value = "会员手机号")
    @Length(max = 16, message = "会员手机号长度不能超过16")
    private String phone;


    /**
     * 会员昵称
     */
    @ApiModelProperty(value = "会员昵称")
    @Length(max = 20, message = "会员昵称长度不能超过20")
    private String nickname;
    /**
     * 会员头像
     */
    @ApiModelProperty(value = "会员头像")
    @Length(max = 500, message = "会员头像长度不能超过500")
    private String headimg;
}